package request

import (
	"zsc-boot/app/customer/model"
	"zsc-boot/core"
)

type CustomerImportReq struct {
	model.CustomerImportLog
	Time         string `json:"time"`
	SecretKeyMd5 string `json:"secretKeyMd5"`
	UUID         string `json:"uuid"`
}

type CustomerImportListReq struct {
	core.PageInfo
	Name         string `form:"name" json:"name" gorm:"column:name;size:128"`
	Mobile       string `form:"mobile" json:"mobile" gorm:"column:mobile;index:inx_mobile;size:32"`
	City         string `form:"city" json:"city" gorm:"column:city;size:32"`
	IsRepeated   *bool  `form:"isRepeated" json:"isRepeated" gorm:"default:false;column:is_abandon;comment:是否为重复申请"`
	ChannelId    int    `form:"channelId" json:"channelId" gorm:"column:channel_id"`
	IsAllocation *bool  `form:"isAllocation" form:"isAllocation" gorm:"column:is_allocation;comment:是否已处理;default:false" json:"isAllocation"`
	UserId       uint   `form:"userId" json:"userId"`
	StartDate    string `form:"startDate" json:"startDate" gorm:"column:start_date"`
	EndDate      string `form:"endDate" json:"endDate"`
}

type CustomerImportLogAbandonReq struct {
	Ids       []uint `json:"Ids" form:"Ids"` // 主键ID
	IsAbandon *bool  `json:"isAbandon" gorm:"default:false;column:is_abandon;comment:是否放弃"`
}
